Fundamental Theorem of Arithmetic

Theorem

Every integer n2 has a unique, up to reordering, factorisation into a product of prime numbers.

Note that by taking 1 as an empty product we can extend this result to n1.


To prove this we will first prove a weaker result with non-uniqueness.

Lemma

Every integer n2 can be written as a product of primes.

Proof

We proceed with strong induction as follows. First note that because 2 is prime, 2 is expressible as a product of primes.

Now assume than for all k satisfying 2kn1, k can be written as a product of primes.

Suppose n is prime, then clearly it is a singleton product of primes. If n is not prime, then it factors as n=ab where 1<a,b<n. Applying the hypothesis to k=a and k=b we have

a=p1pkandb=q1qs

where all pi and qj are prime. Therefore

n=ab=(p1pk)(q1qs),

a product of primes.


We can now prove uniqueness.

Proof

Assume that n=p1pk=q1qs are two factorisations of n into a product of primes. Then piq1qs for each i, and so by Euclid's lemma we know that pi divides one of q1,,qs, say qj. However the only divisors of qj are 1 and pi, and pi1 by assumption that it is prime. Hence pi=qj.

Repeating this procedure and removing factors, we are able to pair them uniquely, and also conclude that s=k.